<div class="modal fade" id="coupon-add" data-keyboard="false" data-backdrop="static" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title pull-left" id="coupon-add-modal-title">新增优惠券类型</h3>
            </div>
            <div class="modal-body">
                <form id="coupon-add-form" class="form-horizontal">
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="title">名称:</label>
                    <div class="col-md-7">
                             <input type="text" name="title" class="form-control">
                             <input type="hidden" name="id"  class="form-control">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="type">类型:</label>
                    <div class="col-md-7">
                          <select  name="type" class="form-control">
                             <option value="1">满减券</option>
                             <option value="2">叠加满减券</option>
                             <option value="3">无门槛券</option>
                          </select>
                    </div>
                  </div>   
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="productsType">限定范围:</label>
                    <div class="col-md-7">
                          <select  name="productsType" class="form-control">
                             <option value="0">全品类</option>
                             <option value="1">限定分类</option>
                             <option value="2">限定商品</option>
                          </select>
                    </div>
                  </div>                    
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="withAmount">起用金额:</label>
                    <div class="col-md-7">
                             <input type="number" name="withAmount" class="form-control">
                    </div>
                  </div>                                
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="amount">优惠金额:</label>
                    <div class="col-md-7">
                             <input type="number" name="amount" class="form-control">
                    </div>
                  </div>   
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="quota">配发数量:</label>
                    <div class="col-md-7">
                         <input type="number" name="quota" class="form-control">
                    </div>
                  </div>   
                  <div class="form-group">
                    <label class="col-md-3 control-label">开始兑换时间:</label>
                    <div class="col-md-7">
                       <input class="form-control js-datetimepicker" type="text" id="startTime" name="startTime" placeholder="请选择开始时间" value="" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD HH:mm" />
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-3 control-label">结束兑换时间:</label>
                    <div class="col-md-7">
                       <input class="form-control js-datetimepicker" type="text" id="endTime" name="endTime" placeholder="请选择结束时间" value="" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD HH:mm" />
                    </div>
                  </div>                   
                  <div class="form-group">
                    <label class="col-md-3 control-label">使用开始时间:</label>
                    <div class="col-md-7">
                       <input class="form-control js-datetimepicker" type="text" id="validStartTime" name="validStartTime" placeholder="请选择开始时间" value="" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD HH:mm" />
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-3 control-label">使用结束时间:</label>
                    <div class="col-md-7">
                       <input class="form-control js-datetimepicker" type="text" id="validEndTime" name="validEndTime" placeholder="请选择结束时间" value="" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD HH:mm" />
                    </div>
                  </div>                  
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="code">兑换码(可选):</label>
                    <div class="col-md-7">
                             <input type="text" name="code" class="form-control">
                    </div>
                  </div>                                     
                  <div class="form-group">
                      <label class="col-md-3 control-label" for="icon">图标</label>
                      <div class="col-md-7 row">
                        <div class="col-md-9">
                          <input type="text" class="form-control" id="icon" name="icon" />
                        </div>
                        <div class="col-md-3">
                          <a href="javascript:;" class="a-upload" id="uploadCoupon">
				            <input type="file" name="file" id="coupon_file">上传图片
					      </a>
                        </div>
                      </div>
                    </div>     
                  <div class="form-group">
                    <label class="col-md-3 control-label" for="couStatus">状态:</label>
                    <div class="col-md-7">
                      <label class="radio-inline" for="recommend-radio1">
                        <input type="radio" id="recommend-radio1" name="couStatus" value="1" checked>
                        正常
                      </label>
                      <label class="radio-inline" for="recommend-radio2">
                        <input type="radio" id="recommend-radio2" name="couStatus" value="0">
                        锁定
                      </label>
                    </div>
                  </div> 
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary btn-save" id="coupon-add-button" name="save">保存</button>
                <button type="button" class="btn btn-default btn-close">取消</button>
                <button class="btn-hide"></button>
            </div>
        </div>
    </div>
</div>
<script data-th-src="@{/js/app/admin/shop/coupon/couponAdd.js}"></script>